import java.util.Scanner;

/**
 * @author caesar
 * @date 2025/7/1
 * @apiNote
 */
//（1）用一个数组，保存星期一到星期天的7个英语单词，数组如下：
//{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"}
//（2）从键盘输入1-7的整数，显示该整数对应的单词
public class practice1_2 {
    public static void main(String[] args) {
        String[] week = {"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};
        Scanner input = new Scanner(System.in);
        int num;
        while(true){
            System.out.print("请输入1-7的整数：");
            num = input.nextInt();
            if(num < 1 || num > 7){
                System.out.println("输入的数字有误！请重新输入！");
            }else{
                break;
            }
        }
        System.out.println(week[num-1]);
        input.close();
    }
}
